package com.payment.ktb.db;

import com.payment.ktb.utils.DataBaseUtils;
import com.payment.ktb.utils.ToastUtils;

import java.io.IOException;


/**
 * Created by syd on 2016/1/20.
 */
public class DBHelp {



    //名称应该和assets目录下的名字匹配
    public static  String sqliteName = "china_province_city_zone.db";

    /**
     * 创建中国城市的数据库
     */
    public static String  createSQLiteOfChinaCity() {

        String sqliePath = null;
        try {
            sqliePath = DataBaseUtils.CopySqliteFileFromRawToDatabases(sqliteName);

        } catch (IOException e) {
            ToastUtils.showToast("创建数据库失败！");
            e.printStackTrace();
        }

        return sqliePath;

    }



}
